import Http from "@/api/http";
import HttpServer from "@/api/useServerRequest";

/**
 * @description 客户案例类型(Tab)
 */
export const getCasesTypeList = () => {
  return Http.get("/prod-api/api/case/caseTypeList");
};


/**
 * @description 客户案例列表表格
 */
export const getCasesListByTypeId = (params: any) => {
  return Http.get(`/prod-api/api/case/getCaseListByTypeId/${params.typeId}/${params.pageNum}/${params.pageSize}`);
};

/**
 * @description 客户案例详情
 */
export const getCasesDetailById = (id: any) => {
  return Http.get(`/prod-api/api/case/getCaseDetailsById/${id}`);
};

/**
 * @description 客户案例类型(Tab)
 */
export const getCasesTypeListServer = () => {
  return HttpServer.get("/prod-api/api/case/caseTypeList");
};


/**
 * @description 客户案例列表表格
 */
export const getCasesListByTypeIdServer = (params: any) => {
  return HttpServer.get(`/prod-api/api/case/getCaseListByTypeId/${params.typeId}/${params.pageNum}/${params.pageSize}`);
};

/**
 * @description 客户案例详情
 */
export const getCasesDetailByIdServer = (id: any) => {
  return HttpServer.get(`/prod-api/api/case/getCaseDetailsById/${id}`);
};
